import 'package:buy_flutter/common/sp/UserSharePreference.dart';
import 'package:dio/dio.dart';

import 'net_manager.dart';

class NetConfig {
  static String baseUrl = "https://api.gapsk.com";
  static int connectTimeout = 5000;
  static int receiveTimeout = 5000;
  static String jwt = '';

  static Map<String, dynamic> headers() {
    return {'platform': 'yapi', "jwt": jwt};
  }

  static void setJwt(String jwtStr) {
    jwt = jwtStr;
    NetManager.getInstance().syncHeader();
  }
}
